package com.ruoyi.mx.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.mx.domain.MxActivity;
import com.ruoyi.mx.dto.ActivityDetail;

import java.util.ArrayList;

/**
 * 美秀活动Service接口
 *
 * @author ruoyi
 * @date 2021-09-27
 */
public interface IMxActivityService extends IService<MxActivity> {

    ArrayList<MxActivity> getSwiperActivity();

    ArrayList<MxActivity> getActivityList(Integer pageNum, Integer pageSize);

    ActivityDetail getDetailById(String id);

    ArrayList<MxActivity> getHotActivityList(Integer pageNum, Integer pageSize);

    void insertCollections(String aid, String uid);

    Integer delCollections(String aid, String uid);


    void insertAZan(String aid, String uid);

    Integer delZan(String aid, String uid);



    void insertACai(String aid, String uid);

    Integer delCai(String aid, String uid);

    Integer countCollections(String aid, String uid);

    Integer countActivityZan(String aid, String uid);

    Integer countActivityCai(String aid, String id);
}
